package com.unlcn.ils.kas.service.util.enums.order;

/**
 * 异常分类
 * 
 * @author 罗必量
 */
public enum OrderExceptionClassEnum {

    CLASS_ONE(1, "承运司机为空"), CLASS_TWO(2, "在途位置为空或者连续2天未变化"), CLASS_THREE(3, "非正常电话号码"), CLASS_FOUR(4, "离昌时间晚于运抵时间"),
    CLASS_FIVE(5, "运抵时间晚于回单时间"), CLASS_SIX(6, "非自提已离昌且未运抵且无在途轨迹"), CLASS_SEVEN(7, "非自提已离昌且未运抵且无两天内在途轨迹");

    private final Integer code;
    private final String text;

    OrderExceptionClassEnum(Integer code, String text) {
        this.code = code;
        this.text = text;
    }

    /**
     * Gets code.
     *
     * @return the code
     */
    public Integer getCode() {
        return code;
    }

    /**
     * Gets text.
     *
     * @return the text
     */
    public String getText() {
        return text;
    }
}
